home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
viewers
/
polyview
/
hdf-ucd.lha
/
HDF-UCD
/
facetedge.h
< prev
next >
Wrap
Text File
|
1992-03-03
|
3KB
|
64 lines
typedef enum { quad = 0, tri = 1} facetype;
#define qfaes 11 /* quad face array element size */
#define tfaes 9 /* tri face array element size */
#define caes 3 /* cell array element size */
#define pcaes 2 /* plane cell array element size */
#define pfaes 4 /* plane faces array element size */
#define Faes 4 /* Faces array element size */
#define HFaes 4 /* HullFaces array element size */
/* to understand above definitions also refer to main.h */
#define fop 5 /* faces in a prism */
#define foh 6 /* faces in a hexahedron */
#define fot 4 /* faces in a tetrahedron */
#define vqf 4 /* vertices in a quad face */
#define vtf 3 /* vertices in a triface */
#define qversions 8 /* number versions of a quad face, change names */
#define tversions 6 /* number versions of a triface */
static char FACETYPE[4][15] = {"", "hull", "symhull", "blank"};
#define HULL 1 /* face type hull => a + is outside cell */
#define SYMHULL 2 /* a + is inside hull, a - outside */
#define BLANK 3 /* interior face */
static int qvoarray[8] = { 0, 1, 1, 2, 2, 3, 3, 0};/* origin array, enext */
static int qvearray[8] = { 2, 7, 4, 1, 6, 3, 0, 5};/* array for quad faces */
static int tvoarray[6] = { 0, 1, 1, 2, 2, 0}; /* origin array, enext array */
static int tvearray[6] = { 2, 5, 4, 1, 0, 3}; /* for tri faces */
int boundfacenum=0; /* variable to keep track of # boundary faces */
/* processing hexahedral cells */
int qfaces[6][11]; /* stores info for one hexahedral cell */
int qmfaceindex[6]; /* stores indices of matching faces in quad face array */
BOOLEAN qmfaceflag[6]; /* flag indicating if face already in quad */
/* faces, one for each face */
/* processing tetrahedral cels */
int tfaces[4][9]; /* same as for hexahedral cells, only */
int tmfaceindex[4]; /* now we have 4 faces all triangular faces */
BOOLEAN tmfaceflag[4];
/* processing prisms */
int pqfaces[3][11]; /* prism has 3 quad faces */
int ptfaces[2][9]; /* and 2 tri faces */
int pqtmfaceindex[5]; /* same as for hexahedra and tetrahedra */
BOOLEAN pqtmfaceflag[5];
/* processing pyramids */
int pyqfaces[1][11]; /* pyramid has one quad face and 4 tri faces */
int pytfaces[4][9]; /* same as for hexahedra and tetrahedra */
int pyqtmfaceindex[5];
BOOLEAN pyqtmfaceflag[5];